package jp.co.technotree.common.ctrl.context;

import java.io.Serializable;
import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;

import jp.co.technotree.common.ctrl.ActionInfo;
import jp.co.technotree.common.ctrl.FormBean;

public class RequestContext implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String requestPath = null;
	private ActionInfo actionInfo = null;
	private FormBean requestBean = null;
	private String actionId = null;
	private String commandName = null;
	private Class<?> commandClass = null;
	private String taskCd = null;
	private String basicAuthUser = null;
	private String basicAuthPassword = null;
	private String xmlString = null;
	private HttpServletRequest request = null;
	
	private HashMap<String,Object> requestMap = new HashMap<String,Object>();
	

	public String getActionId() {
		return actionId;
	}
	public void setActionId(String actionId) {
		this.actionId = actionId;
	}
	public String getRequestPath() {
		return requestPath;
	}
	public void setRequestPath(String requestPath) {
		this.requestPath = requestPath;
	}
	public ActionInfo getActionInfo() {
		return actionInfo;
	}
	public void setActionInfo(ActionInfo actionInfo) {
		this.actionInfo = actionInfo;
	}
	public FormBean getRequestBean() {
		return requestBean;
	}
	public void setRequestBean(FormBean requestBean) {
		this.requestBean = requestBean;
	}
	public String getBasicAuthUser() {
		return basicAuthUser;
	}
	public void setBasicAuthUser(String basicAuthUser) {
		this.basicAuthUser = basicAuthUser;
	}
	public String getBasicAuthPassword() {
		return basicAuthPassword;
	}
	public void setBasicAuthPassword(String basicAuthPassword) {
		this.basicAuthPassword = basicAuthPassword;
	}
	public String getXmlString() {
		return xmlString;
	}
	public void setXmlString(String xmlString) {
		this.xmlString = xmlString;
	}
	public HttpServletRequest getRequest() {
		return request;
	}
	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}
	public void setRequestMap(String keyName,Object value){
		this.requestMap.put(keyName,value);
	}
	public Object getRequestMap(String keyName){
		return this.requestMap.get(keyName);
	}
	public HashMap<String,Object> getRequestMap(){
		return this.requestMap;
	}
	public String getTaskCd() {
		return taskCd;
	}
	public void setTaskCd(String taskCd) {
		this.taskCd = taskCd;
	}
	public Class<?> getCommandClass() {
		return commandClass;
	}
	public void setCommandClass(Class<?> commandClass) {
		this.commandClass = commandClass;
	}
	public String getCommandName() {
		return commandName;
	}
	public void setCommandName(String commandName) {
		this.commandName = commandName;
	}

	
}
